﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RendicionEditForm.aspx.cs" 
Inherits="UILGestion.ObraAdmin.RendicionCaja.RendicioneditForm" %>



<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>


<%@ Register src="~/Control/menuObraCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc2" %>


<%@ Register src="RendicionDepositoGrid.ascx" tagname="RendicionDepositoGrid" tagprefix="uc3" %>


<%@ Register src="RendicionGrupoGrid.ascx" tagname="RendicionGrupoGrid" tagprefix="uc4" %>



<%@ Register src="../../Control/GastoObraListGrid.ascx" tagname="GastoObraListGrid" tagprefix="uc1" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
    <title></title>
    <link href="~/css/main.css" rel="stylesheet" type="text/css" />
     <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
    <style type="text/css">
        .style1
        {
            height: 17px;
        }
    </style>

    <script src="../../Scripts/RendicionCajaChica.js" type="text/javascript"></script>
      <script type="text/javascript">
<!--

          function goPage() {

              var idObra = document.getElementById("idObra").value;
              var internalid = document.getElementById("idInternal").value;
              window.open('../../Rpt/PrintForm.aspx?type=CAJACHICA&id=' + internalid.toString() + '&idObra=' + idObra);
          }

-->
</script>
</head>
<body>
    <form id="form1" runat="server">
    
   <uc2:menuObraCtrl ID="menuObraCtrl1" runat="server" />
   <input id="idInternal" type="hidden" runat="server" />
    <input id="type" type="hidden" runat="server" />
     <input id="idObra" type="hidden" runat="server" />
     <input id="idCaja" type="hidden" runat="server" />
    
     <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" 
    EnableScriptGlobalization="true"  
     EnablePartialRendering="true"></asp:ToolkitScriptManager>

      <asp:Panel ID="pnlMain" runat="server"
         CssClass="Heading secTitle AreaHeading ms-crm-List-Header " >
<asp:Label ID="Label1" runat="server" Text="REGISTRO RENDICION" style="font-size: large; color: #960818"></asp:Label>
         </asp:Panel>
          <asp:Panel ID="Panel1" runat="server"
       class="ms-crm-Form-Body" >
                 <table  width="900px">
                 <tr>
                 <td  width="80%">

                 

                   <table >
<tr>
<td>
    <asp:Button ID="refreshButton" runat="server" Text="Actualizar"   CssClass="ms-crm-List-Header"
        onclick="accion"    /></td>
<td>
    
        </td>

        
<td>

 <asp:Button ID="RevisarButton" runat="server" Text="VºBº"  Width="120px" CssClass="ms-crm-List-Header"
        onclick="accion"    /></td>

<td>

 <asp:Button ID="desRevisarButton" runat="server" Text="quitar VºBº"  Width="120px" CssClass="ms-crm-List-Header"
        onclick="accion"    /></td>


<td>

 <asp:Button ID="aprobarButton" runat="server" Text="Aprobar"  Width="120px" CssClass="ms-crm-List-Header"
        onclick="accion"    /></td>

<td>

 <asp:Button ID="desaprobarButton" runat="server" Text="Desaprobar"  Width="120px" CssClass="ms-crm-List-Header"
        onclick="accion"    /></td>
 <td>
 &nbsp;</td>
 
        <td>
          
            &nbsp;</td>
 <td><a href="#" onclick="goPage();return true">
            <img src="../../Images/printer.gif"></img></a>
   </td> 
</tr>
</table>
                 </td>
                 <td>
                   <table align="left" >
            
            <tr>
                <td>
                    <asp:Button ID="anteriorButton" runat="server" Text="Anterior"  OnClick="accion"  CssClass="ms-crm-List-Header" />
                </td>
                <td>
                    <asp:Button ID="siguienteButton" runat="server" Text="Siguiente" OnClick="accion"  CssClass="ms-crm-List-Header" />
                </td>
            </tr>
        </table>  
                 </td>
                 </tr>
                 </table>
              
          </asp:Panel>    
 <asp:Panel ID="Panel11" runat="server"  BackColor="white" >
 
 <table>
 <tr>
 <td>   
        <table >
            <tr>
                <td align="right" width="100px">
                    Numero:</td>
                <td width="300px">
                    <asp:Label ID="numdocumentoLbl" runat="server"></asp:Label>
                </td>
                <td align="right" width="100px">
                    Moneda:</td>
                <td width="120px" align="left">
                    <asp:Label ID="monedaTxt" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" width="100px" class="style1">
                    Caja:</td>
                <td width="300px" class="style1">
                    <asp:Label ID="cajaLbl" runat="server"></asp:Label>
                </td>
                <td align="right" width="100px" class="style1">
                    Estado:</td>
                <td width="120px" align="left" class="style1">
                    <asp:Label ID="estadosTxt" runat="server" 
                        style="font-weight: 700; font-size: medium"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" width="100px">
                    Custodio:</td>
                <td width="300px">

                    <asp:Label ID="custodioTxt" runat="server"></asp:Label>

                </td>
                <td align="right" width="100px">
                    &nbsp;</td>
                <td width="80px" align="right">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" width="100px">
                    Descripcion:</td>
                <td width="300px">
                    <asp:Label ID="descripcionTxt" runat="server" Text=""></asp:Label>
                </td>
                <td align="right" width="100px">
                    IGV:</td>
                <td  align="right">
                    <asp:Label ID="IGVLBL" runat="server" Text=""></asp:Label>
                    <asp:Label ID="Label3" runat="server" Text="%"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" width="100px">
                    &nbsp;</td>
                <td width="300px">
                    &nbsp;</td>
                <td align="right" width="100px">
                    &nbsp;</td>
                <td width="80px" align="right">
                    &nbsp;</td>
            </tr>
        </table>
        </td>
    <td valign="middle">
        <asp:UpdatePanel ID="totalUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
        
     <table align="right" class="PanelTotales" >
                <tr>
                    <td align="right" width="100px">
                        <strong>Saldo Anterior:</strong></td>
                    <td align="right">
                        <asp:Label ID="saldoAnteriorLBL" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="100px">
                        <strong>Fondo Asignado:</strong></td>
                    <td align="right">
                        <asp:Label ID="fondoAsignadoLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="100px">
                        <strong>Fondo Gastado:</strong></td>
                    <td align="right">
                        <asp:Label ID="fondoGastadoLbl" runat="server"></asp:Label>
                    </td>
                </tr>

                  <tr>
                    <td align="right" width="100px">
                        <strong>Fondo Saldo:</strong></td>
                    <td align="right">
                        <asp:Label ID="fondoSaldoLbl" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
    </ContentTemplate>
        </asp:UpdatePanel>
    </td>
 </tr>
 </table>

    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="2">
        <asp:TabPanel runat="server" HeaderText="Depositos" ID="TabPanel1">
        <ContentTemplate>
        <uc3:RendicionDepositoGrid ID="RendicionDepositoGrid1" 
                runat="server" />
        
            <br />
           
        
        </ContentTemplate>


        </asp:TabPanel>
        <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Rendicion">
        <ContentTemplate>
         <uc4:RendicionGrupoGrid ID="RendicionGrupoGrid1" runat="server" />
             
        </ContentTemplate>

        </asp:TabPanel>

        <asp:TabPanel HeaderText ="Gasto Obra" runat="server" ID="TabPanel22">
       <ContentTemplate>
          
           <asp:HyperLink ID="addGOHPL" runat="server" ></asp:HyperLink>   
              <asp:UpdatePanel ID="gastoObraUpdatePanel" runat="server">
            
      
       <ContentTemplate>
     
     
      <uc1:GastoObraListGrid ID="GastoObraListGrid2" runat="server" DataSourceID="gastoObraODS" />
           
     
      <asp:ObjectDataSource ID="gastoObraODS" runat="server" EnablePaging="True" 
               SelectCountMethod="Count" SelectMethod="getGastoObraList" 
               SortParameterName="sortExpression" typeName="BOL.OrdenCompraBL">
               
              
               <SelectParameters>
                   
                <asp:querystringparameter Name="idRendicion" querystringfield="id" 
                       Type="Int32" />
                <asp:querystringparameter Name="idtipo" querystringfield="id" Type="Int32" />
                       
                   
                <asp:Parameter Name="startRowIndex" Type="Int32" />
                   
               
                <asp:Parameter Name="maximumRows" Type="Int32" />
                   
               
                <asp:Parameter Name="sortExpression" Type="String" />

                   

               

                </SelectParameters>
          
               
              
               </asp:ObjectDataSource>

           

       

                       </ContentTemplate>
                       
        

            
        

        
        

                   </asp:UpdatePanel>
                   
 
               
</ContentTemplate>
               
      
        
           





</asp:TabPanel>
    </asp:TabContainer>
    </asp:Panel>
   
    
   
   
   
    
   
    </form>
</body>

</html>
